package com.starter.es.common;

import java.util.HashMap;
import lombok.Data;
import org.springframework.http.HttpStatus;

@Data
public class AggsResultResponse {

  /**
   * 应用程序状态码
   */
  private HttpStatus status;

  /**
   * 响应码
   */
  private Integer code;

  /**
   * 错误消息
   */
  private String message;

  /**
   * 错误堆栈消息
   */
  private String developerMessage;

  private HashMap<String, Object> rs;

  public AggsResultResponse(HttpStatus status, Integer code, String message,
      String developerMessage,
      HashMap<String, Object> rs) {
    super();
    this.status = status;
    this.code = code;
    this.message = message;
    this.developerMessage = developerMessage;
    this.rs = rs;
  }
}
